package org.luxor.common.netty.constant;

/**
 * Netty Config
 *
 * @author Mr.yan @date 2024/2/1
 */
public final class ConConfigs {

    /**
     * Default connect timeout value, time unit: ms
     */
    public static final int DEFAULT_CONNECT_TIMEOUT = 1000;

    /**
     * default connection number per url
     */
    public static final int DEFAULT_CONN_NUM_PER_URL = 1;

    /**
     * max connection number of each url
     */
    public static final int MAX_CONN_NUM_PER_URL = 100 * 10000;

    /**
     * Protocol key in url.
     */
    public static final String URL_PROTOCOL = "_PROTOCOL";

    /**
     * Version key in url.
     */
    public static final String URL_VERSION = "_VERSION";

    /**
     * Connection timeout key in url.
     */
    public static final String CONNECT_TIMEOUT_KEY = "_CONNECTTIMEOUT";

    /**
     * Connection number key of each address
     */
    public static final String CONNECTION_NUM_KEY = "_CONNECTIONNUM";

    /**
     * whether need to warm up connections
     */
    public static final String CONNECTION_WARMUP_KEY = "_CONNECTIONWARMUP";


}
